﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace RiskMan.Config
{
    /// <summary>
    /// Логика взаимодействия для RegisterInfo.xaml
    /// </summary>
    /// 
    
    public partial class RegisterInfo : Window
    {
        public string fio;
        public string email;
        public string call = "unknown";
        public string broker = "unknown";
        public string skype = "unknown";
        public bool Cancel = false;
       
        public RegisterInfo()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            if (textBox1.Text.Trim().Length > 0 && textBox2.Text.Trim().Length > 0)
            {
                fio = textBox1.Text;
                email = textBox2.Text;
                call = textBox3.Text;
                broker = textBox4.Text;
                skype = textBox5.Text;
                this.Cancel = true;
                this.Close();
            }
        }
    }
}
